package com.glacier.demo.handle;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import lombok.extern.slf4j.Slf4j;

/**
 * date 2024-01-29 21:29
 *
 * @author glacier
 * @version 1.0
 */
@Slf4j
public class CustomHandle {

    public static String blockHandler1(Long id, BlockException e) {
        log.error("限流");
        return "~~被限流";
    }

    public static String blockHandler2(String name, BlockException e) {
        log.error("{} 被限流", name);
        return "name:" + name + "~~被限流";
    }

}
